import 'package:flutter/material.dart';

//按钮
class MyRaisedButton extends StatelessWidget {
  final double width;
  final double height;
  final Widget child;
  final void Function() click;

  const MyRaisedButton(
      {Key key, this.width, this.height, this.click, this.child})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: width,
      height: height,
      child: RaisedButton(
        color: Theme.of(context).primaryColor,
        onPressed: click,
        child: child,
      ),
    );
  }
}
